package ar.fi.uba.fallas2.business.factories;

import java.sql.ResultSet;
import java.sql.SQLException;

import ar.fi.uba.fallas2.business.AnswerKind;

public class AnswerKindFactory {
	public static AnswerKind create(ResultSet rs) throws SQLException {
		AnswerKind k = new AnswerKind(rs.getInt(1));
		k.setValue(rs.getString(2));
		return k;
	}
}
